package com.mx.pcs.lawyers.core.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * The login controller.
 * @author EdgarOlvera
 *
 */
@Controller
public class LoginController {
	
	@RequestMapping(value="/login", method=RequestMethod.GET)
	public ModelAndView getLogin(HttpServletRequest request, HttpServletResponse response) {
		System.out.println("en login controller");	
//		model.addObject("msg", "hello world");
		return new ModelAndView("login");
	}
	
	@RequestMapping(value="/menuManager", method=RequestMethod.GET)
	public ModelAndView getMainMenu(HttpServletRequest request, HttpServletResponse response) {
		System.out.println("en main controller");	
//		model.addObject("msg", "hello world");
		return new ModelAndView("mainMenu");
	}
}
